<?php $this->load->view ( 'header' );?>

				<?php $this->load->view ( 'left' );?>	    		
	    		<div class="zx">&nbsp;
	    		</div>
	    	
	    		<!-- Right -->
	    		<div class="main_right">
	    			<div class="rabout">
	        			<dl>
	            			<dt>
	            				<a href="/about">
	            					<span class="my_header_cn">关于高铭&nbsp;</span>
	            					<span class="my_header_en">About</span>
	            				</a>
	            			</dt>
	            			<dt class="my_header_underline"></dt>
	            			<dt class="my_header_underline"></dt>
	              			<dd>
								<?php echo $company['intro'];?> 
	              			</dd>
	            		</dl>
	        		</div>
	        		
	        		<div class="rnews" style="margin-top:17px;">
	        			<dl>
	            			<dt>
	            				<a href="/knowledge">
	            					<span class="my_header_cn" style="float:left;padding-right:0px;padding-left:0px;">装修常识&nbsp;</span>
	            					<span class="my_header_en" style="float:left;margin-bottom:2px;padding-left:0px;">Knowledge</span>
	            				</a>
	            			</dt>
	            			<dt class="my_header_underline"></dt>
	            			<dt class="my_header_underline"></dt>
	            		</dl>
	            		<ul style="margin-left:15px;">
	            			<?php $showNum = 6;?>
							<?php foreach ($knowledge as $id=>$kl):?>
							<?php 
								if($showNum < 0){
									break;
								}else{
									$showNum--;
								}
							?>
	            			<li class="my_news_sidebar">
	            				<span><?php echo $kl['ctime'];?></span>
	            				<a href='/knowledge?id=<?php echo $id;?>' target="_blank" title="<?php echo $kl['title'];?>">
									<?php echo $kl['title'];?> 
	            				</a>
	            			</li>
							<?php endforeach;?>
	            		</ul>
	        		</div>
		
					<script type="text/javascript">
						var speed = 40
					</script>
					<?php $count = 1;?>
					<?php foreach ($designspace as $ds):?>
					<?php $pkey = $ds['pKey'];?>
			        <div class="rdesignpace" style="margin-bottom:20px;">
			        	<dl>
	            			<dt>
	            				<a href="/designspace?tag=<?php echo $ds['tag'];?>">
	            					<span class="my_header_cn" style="float:left;padding-right:0px;padding-left:0px;"><?php echo $ds['name']?>&nbsp;</span>
	            					<span class="my_header_en" style="float:left;margin-bottom:2px;padding-left:0px;"><?php echo $ds['en'];?></span>
	            				</a>
	            			</dt>
	            			<dt class="my_header_underline"></dt>
	            			<dt class="my_header_underline"></dt>
	            		</dl>

						<div class="rdesignpace_con">
							<table width="630" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td height="208">
										<div id="scroll_div<?php echo $count;?>" style="overflow: hidden; WIDTH: 630px;" align=center>
											<?php if( ! empty($pic) && ! empty($pic[$pkey])):?>
											<?php $width = 304;?>
											<table border="0" cellpadding="0" cellspacing="0" width="<?php echo ($width+3)*sizeof($pic[$pkey])*2;?>">
	  											<tr>
	    											<td id="scroll_begin<?php echo $count;?>">
														<a href="/designspace?tag=<?php echo $ds['tag'];?>">
															<?php foreach ($pic[$pkey] as $p):?>
	   														<img src="<?php echo $p['src'];?>" height=210 width=<?php echo $width;?> />
	   														<?php endforeach;?>
	    												</a>
	    											</td>
	    											<td id="scroll_end<?php echo $count;?>"></td>
	  											</tr>
											</table>
											<?php endif?>
										</div>
									</td>
								</tr>
							</table>
	            		</div>
	        		</div>
	        		<script type="text/javascript">
	        		var scroll_end<?php echo $count;?> = document.getElementById("scroll_end<?php echo $count;?>");
	        		var scroll_div<?php echo $count;?> = document.getElementById("scroll_div<?php echo $count;?>");
	        		
	        		scroll_end<?php echo $count;?>.innerHTML=scroll_begin<?php echo $count;?>.innerHTML
	        		function Marquee<?php echo $count;?>(){
	        			if(scroll_end<?php echo $count;?>.offsetWidth-scroll_div<?php echo $count;?>.scrollLeft<=0)
	        				scroll_div<?php echo $count;?>.scrollLeft-=scroll_begin<?php echo $count;?>.offsetWidth
	        				else{
	        					scroll_div<?php echo $count;?>.scrollLeft++
	        				}
	        		}

	        		var MyMar<?php echo $count;?>=setInterval(Marquee<?php echo $count;?>,speed)
	        		
	        		scroll_div<?php echo $count;?>.onmouseover=function() {clearInterval(MyMar<?php echo $count;?>)}
	        		scroll_div<?php echo $count;?>.onmouseout=function() {MyMar<?php echo $count;?>=setInterval(Marquee<?php echo $count;?>,speed)}
	        		</script>
	        		<?php $count++;?>
	        		<?php endforeach?>
	    		</div>
	    
	    	
<?php $this->load->view ( 'footer' );?>